#!/bin/bash

version="0.60.0"

mkdir -p ~/Downloads/frp
cd ~/Downloads/frp
# echo "https://github.com/fatedier/frp/releases/download/${version}/frp_${version}_linux_amd64.tar.gz"
curl -LO "https://github.com/fatedier/frp/releases/download/v${version}/frp_${version}_linux_amd64.tar.gz"

tar -zxvf "frp_${version}_linux_amd64.tar.gz"

mv "frp_${version}_linux_amd64" "/opt/frp"

mv /opt/frp/frpc /opt/frp/penetratec
mv /opt/frp/frps /opt/frp/penetrates
